#include "stdafx.h"
#include "Task.h"


Task::Task(TimeTicks tick)
	: time_(tick)
{
}

Task::Task()
	: time_(0)
{
}


Task::~Task()
{
}

bool Task::needRun()
{
	return Time::now() >= time_;
}


void Task::setTick(TimeTicks tick)
{
	time_ = tick;
}


TimeTicks Task::getTick()
{
	return time_;
}
